<div class="page-title clearfix">
  <div class="title">星级管理</div>
</div>

<div class="page-msg m-15">
  <h3>功能描述</h3>
  <ul>
    <li *ngFor="let item of msgTip.level">{{item}}</li>
  </ul>
</div>

<div class="panel">
  <nz-table #nzTable
            [nzData]="starLevelObjList.voList"
            [nzLoading]="_loading"
            [nzFrontPagination]="false"
            [nzShowTotal]="totalRow"
            [nzPageSize]="starLevelObjList.pageSize"
            [nzTotal]="starLevelObjList.totalRow"
            [nzPageIndex]="starLevelObjList.curPage"
            (nzPageIndexChange)="queryStarLevelList($event)">
    <thead nz-thead>
    <ng-template #totalRow>共 {{starLevelObjList.totalRow}} 条数据</ng-template>
    <tr>
      <th nz-th class="text-center" nzWidth="5%"><span>序号</span></th><!--序号-->
      <th nz-th class="text-center" nzWidth="15%"><span>星级名</span></th><!--星级-->
      <th nz-th class="text-center" nzWidth="10%"><span>星级</span></th><!--星级-->
      <th nz-th class="text-center" nzWidth="15%"><span>收益上限(倍)</span></th><!--动态收益上限倍数-->
      <th nz-th class="text-center" nzWidth="15%"><span>升级押金(JLB)</span></th><!--升级押金-->
      <th nz-th class="text-center" nzWidth="15%"><span>提现比例(%)</span></th><!--金兰宝提现释放比例-->
      <th nz-th class="text-center" nzWidth="15%"><span>矿石提炼比(%)</span></th><!--金兰宝提现释放比例-->
      <th nz-th class="text-center" nzWidth="10%"><span>操作</span></th><!--操作-->
    </tr>
    </thead>
    <tbody nz-tbody>
    <ng-template ngFor let-data [ngForOf]="nzTable.data" let-i="index">
      <tr nz-tbody-tr>
        <td nz-td class="text-center">{{i+1}}</td>
        <td nz-td class="text-center">{{data.name}}</td>
        <td nz-td class="text-center">{{data.starLevel}}</td>
        <td nz-td class="text-center">{{data.multiple}}倍</td>
        <td nz-td class="text-center">{{data.deposit}} JLB</td>
        <td nz-td class="text-center">{{data.withdrawCashRate}}%</td>
        <td nz-td class="text-center">{{data.oreRefiningRate}}%</td>
        <td nz-td class="text-center">
          <button nz-button class="btn-blue-o mr" [routerLink]="[routerLinks.starLevel.modify,data.code]"
                  title="修改">
            <i class="anticon anticon-edit"></i></button>
        </td>
      </tr>
    </ng-template>
    </tbody>
  </nz-table>
</div>
